package org.wdj.service;

import org.wdj.pojo.User;

public interface UserService {
    User findByUsername(String username);

    void register(String username, String password);

    void update(User user);

    void updateAvatar(String avatarUrl);

    void updatePwd(String newPwd);

    User findByUserEmail(String email);

    void updatePwdByEmail(String newPwd, Integer id);
}
